package com.woniu.utils;

public class Result {
	
	private Integer code;
	
	private String msg;
	
	private Object data;
	
	public static Result getInstance() {
		Result re = new Result();
		re.setCode(200);
		re.setMsg("访问成功");
		return re;
	}

	public Integer getCode() {
		return code;
	}

	public Result setCode(Integer code) {
		this.code = code;
		return this;
	}

	public String getMsg() {
		return msg;
	}

	public Result setMsg(String msg) {
		this.msg = msg;
		return this;
	}

	public Object getData() {
		return data;
	}

	public Result setData(Object data) {
		this.data = data;
		return this;
	}
	
	

}
